package com.hexu.event.bean;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

public class AttractionsBean {

    private SimpleStringProperty name;
    private SimpleStringProperty openTime;
    private SimpleIntegerProperty ticketFare;
    private SimpleIntegerProperty ticketNumber;
    private SimpleStringProperty introduce;
    private SimpleIntegerProperty commentNumber;

    public AttractionsBean(){
        super();
    }

    public AttractionsBean(String name, String openTime, Integer ticketFare,Integer ticketNumber,String introduce,
                            Integer commentNumber) {
        this.name = new SimpleStringProperty(name);
        this.openTime = new SimpleStringProperty(openTime);
        this.ticketFare = new SimpleIntegerProperty(ticketFare);
        this.ticketNumber = new SimpleIntegerProperty(ticketNumber);
        this.introduce = new SimpleStringProperty(introduce);
        this.commentNumber = new SimpleIntegerProperty(commentNumber);
    }

    //getter and setter


    public String getName() {
        return name.get();
    }

    public SimpleStringProperty nameProperty() {
        return name;
    }

    public void setName(String name) {
        this.name.set(name);
    }

    public String getOpenTime() {
        return openTime.get();
    }

    public SimpleStringProperty openTimeProperty() {
        return openTime;
    }

    public void setOpenTime(String openTime) {
        this.openTime.set(openTime);
    }

    public int getTicketFare() {
        return ticketFare.get();
    }

    public SimpleIntegerProperty ticketFareProperty() {
        return ticketFare;
    }

    public void setTicketFare(int ticketFare) {
        this.ticketFare.set(ticketFare);
    }

    public int getTicketNumber() {
        return ticketNumber.get();
    }

    public SimpleIntegerProperty ticketNumberProperty() {
        return ticketNumber;
    }

    public void setTicketNumber(int ticketNumber) {
        this.ticketNumber.set(ticketNumber);
    }

    public String getIntroduce() {
        return introduce.get();
    }

    public SimpleStringProperty introduceProperty() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce.set(introduce);
    }

    public int getCommentNumber() {
        return commentNumber.get();
    }

    public SimpleIntegerProperty commentNumberProperty() {
        return commentNumber;
    }

    public void setCommentNumber(int commentNumber) {
        this.commentNumber.set(commentNumber);
    }
}
